Skip to main content
Version: 5.x.x

ConnectMethodType


import { ConnectMethodType } from "@hyper-fetch/sockets"

Description

Defined in types/connect.types.ts:3

Preview

type ConnectMethodType<AdapterType,EventType> = (response: Parameters<ListenerCallbackType<AdapterType, EventType>>[0], unsubscribe: () => void) => void;

Structure

(response: P, unsubscribe: () => void) => void